package ll.sms.pojo;

import java.sql.Timestamp;

import ll.sms.util.SmsUtil;

/**
 * SmsAccount entity.
 *
 * @author MyEclipse Persistence Tools
 */

public class SmsAccount implements java.io.Serializable {

	// Fields

	private String cid;
	private String cuname;
	private Float cprice;
	private long csmsnum;
	private Timestamp ctime;
	private String coperator;
	private String cnote;

	// Constructors

	public Timestamp getCtime() {
		return ctime;
	}

	public void setCtime(Timestamp ctime) {
		this.ctime = ctime;
	}

	/** default constructor */
	public SmsAccount() {
	}

	/** minimal constructor */
	public SmsAccount(String cid) {
		this.cid = cid;
	}

	/** full constructor */
	public SmsAccount(String cid, String cuname, Float cprice, long csmsnum,
			Timestamp ctime, String coperator, String cnote) {
		this.cid = cid;
		this.cuname = cuname;
		this.cprice = cprice;
		this.csmsnum = csmsnum;
		this.ctime = ctime;
		this.coperator = coperator;
		this.cnote = cnote;
	}

	// Property accessors

	public String getCid() {
		return this.cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public String getCuname() {
		return this.cuname;
	}

	public void setCuname(String cuname) {
		this.cuname = cuname;
	}

	public Float getCprice() {
		return this.cprice;
	}

	public void setCprice(Float cprice) {
		this.cprice = cprice;
	}




	public long getCsmsnum() {
		return csmsnum;
	}

	public void setCsmsnum(long csmsnum) {
		this.csmsnum = csmsnum;
	}

	public String getCoperator() {
		return this.coperator;
	}

	public void setCoperator(String coperator) {
		this.coperator = coperator;
	}

	public String getCnote() {
		return this.cnote;
	}

	public void setCnote(String cnote) {
		this.cnote = cnote;
	}

	public String toString(){
		StringBuffer sb =new StringBuffer();
		sb.append("{cid:'").append(this.cid)
		.append("',cuname:'").append(this.cuname)
		.append("',cprice:").append(this.cprice)
		.append(",csmsnum:").append(this.csmsnum)
		.append(",ctime:'").append(SmsUtil.defaultDateFormat(this.ctime))
		.append("',coperator:'").append(this.coperator).append("'")
		.append(",cnote:'").append(this.cnote).append("'}");

		return sb.toString();
	}
}